﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYS.Core.Models
{
    /// <summary>
    /// ElasticSearch 配置内容
    /// </summary>
    public class ElasticSearchSetting
    {
        /// <summary>
        /// ES 名称（全局唯一）
        /// </summary>
        public string ElasticName { get; set; }

        /// <summary>
        /// host
        /// </summary>
        public string ElasticSearchHost { get; set; }

        /// <summary>
        /// 保持时间
        /// </summary>
        public TimeSpan KeepAliveTime { get; set; } = TimeSpan.FromMinutes(3);

        /// <summary>
        /// 保持间隔
        /// </summary>
        public TimeSpan keepAliveInterval { get; set; } = TimeSpan.FromSeconds(2);
    }
}
